#import <UIKit/UIKit.h>

@protocol XMAddressViewCellDelegate;

@interface XMAddressViewCell : UITableViewCell

@property (nonatomic, strong) NSIndexPath *indexPath;
@property (nonatomic, weak) id<XMAddressViewCellDelegate> delegate;

- (void)configureWithAddress:(NSDictionary *)address;

@end

@protocol XMAddressViewCellDelegate <NSObject>

@optional
- (void)addressCell:(XMAddressViewCell *)cell didSelectDefault:(NSIndexPath *)indexPath;
- (void)addressCell:(XMAddressViewCell *)cell didClickEdit:(NSIndexPath *)indexPath;
- (void)addressCell:(XMAddressViewCell *)cell didClickDelete:(NSIndexPath *)indexPath;

@end    
